package com.hengpeng.itfints.service.article;

import java.util.List;

import com.hengpeng.common.exception.ServiceResult;
import com.hengpeng.common.persist.QueryResult;
import com.hengpeng.itfinbase.persist.Article;
import com.hengpeng.itfinbase.persist.ArticleCategory;

public interface ArticleService
{

	/**
	 * <pre>
	 * 根据类型查询
	 * </pre>
	 * @param categoryId
	 * @param count
	 * @param currentPage
	 * @return
	 */
	public QueryResult<Article> findArticleByCategoryId(Long categoryId, Integer count, Integer currentPage);
	
	public List<Article> findArticleListByGroupId(Long groupId,  Integer count);
	
	public Article getArticle(Long articleId);
	
	public QueryResult<Article> findArticleListByGroup(Long gid,Integer pageSize, Integer currentPage);
	
	public List<ArticleCategory> findArticleCategoryAll();
	
	public ServiceResult<List<Article>> queryList(Integer pageIndex, Integer pageSize);
	
}
